package cloudEntity.vo.user;

import cloudEntity.enumation.EducationDetailsTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * 智慧校园用户德育明细表(SmartUserMoralEducationDetails)表实体类
 *
 * @author makejava
 * @since 2025-04-15 10:01:43
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SmartUserMoralEducationDetailsVO {
    //智慧校园德育明细ID
    private Long sysMoralEducationDetailId;
    private String sysMoralEducationDetailUserName;
    //智慧校园德育明细分数
    private Integer sysMoralEducationDetailScore;
    //智慧校园德育加扣分描述
    private String sysMoralEducationDetailDescription;
    //智慧校园德育操作实况
    private String sysMoralEducationDetailType;
    //智慧校园德育操作创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sysMoralEducationDetailCreateTime;
    //智慧校园德育操作修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sysMoralEducationDetailUpdateTime;
    //智慧校园德育操作者名字
    private String sysMoralEducationDetailCreateUserName;

    public void setSysMoralEducationDetailType() {
        this.sysMoralEducationDetailType = EducationDetailsTypeEnum.getDescriptionByValue(sysMoralEducationDetailScore);
    }
}

